<template>
	<view class="hs-panel">
		<view class="hs-panel-head">
			<view class="title">婚庆基本信息</view>
		</view>
		<view class="hs-panel-body">
			<view class="hs-list-item">
				<view class="hs-list-item-left">承办公司</view>
				<view class="hs-list-item-right">{{ dictionary.getPickerTitle('companyList', wedding.company_id) }}</view>
			</view>
			<view class="hs-list-item">
				<view class="hs-list-item-left">婚庆总金额</view>
				<view class="hs-list-item-right">{{ wedding.wedding_totals }}</view>
			</view>
			<view class="hs-list-item" v-if="wedding.wedding_package_id">
				<view class="hs-list-item-left">所选套餐</view>
				<view class="hs-list-item-right">{{ dictionary.getPickerTitle('weddingPackageList', wedding.wedding_package_id) }}</view>
			</view>
			<view class="hs-list-item" v-if="wedding.wedding_discount">
				<view class="hs-list-item-left">优惠金额</view>
				<view class="hs-list-item-right">{{ wedding.wedding_discount }}</view>
			</view>
			<view class="hs-list-item">
				<view class="hs-list-item-left">婚庆套餐价</view>
				<view class="hs-list-item-right">{{ wedding.wedding_package_price }}</view>
			</view>
			<view class="hs-list-item" v-if="wedding.wedding_ritual_id > 0">
				<view class="hs-list-item-left">仪式</view>
				<view class="hs-list-item-right">{{ dictionary.getPickerTitle('ritualList', wedding.wedding_ritual_id, '-') }}</view>
			</view>
			<view class="hs-list-item" v-if="wedding.wedding_ritual_hall">
				<view class="hs-list-item-left">仪式价格</view>
				<view class="hs-list-item-right">{{ wedding.wedding_ritual_hall }}</view>
			</view>
			<view class="hs-list-item" v-if="wedding.wedding_other">
				<view class="hs-list-item-left">其他</view>
				<view class="hs-list-item-right">{{ wedding.wedding_other }}</view>
			</view>
			<view class="remark" v-if="wedding.wedding_remark">
				<view class="remark-title">备注</view>
				<view class="remark-content">{{ wedding.wedding_remark }}</view>
			</view>
		</view>
	</view>
</template>

<script>
import dictionary from '@/utils/dictionary.js';
export default {
	props: {
		wedding: Object
	},
	beforeCreate() {
		this.dictionary = dictionary;
	}
};
</script>

<style lang="less">
@import url('../common.less');
</style>
